<div class="bh-ly-yw-center-jiudian-xialeft bh-Border_2 bh-fl">
	<h3 class="bh-ly-yw-shang">酒店列表</h3>
		<div class='hotel-list'>
		</div>
		<?php foreach ($data->getData() as $one):?>
		<div class='hotel-item'>
			<div class='hotel-item-desc-wrapper'>
				<div class='hotel-item-image'>
					<a href='<?php echo $one->vUrl?>' target='<?php echo Yii::app()->option->get('hotel_list_target');?>'><?php echo $one->img(640,480)?></a>
					<a href='<?php echo $one->vUrl?>' class='watchAll a-blue' target='<?php echo Yii::app()->option->get('hotel_list_target');?>'>查看所有图片</a>
				</div>
				<div class='hotel-item-desc'>
					<div class='hotel-item-desc-top'>
						<p class='hotel-item-title'>
							<a href='<?php echo $one->vUrl?>' target='<?php echo Yii::app()->option->get('hotel_list_target');?>' class='a-blue'><?php echo $one->fullTitle?></a>
							<!-- hl-2,3,4,5 酒店星级 -->
							<span><img src="<?php echo Yii::app()->baseUrl?>/images/hl-<?php echo $one->star?>.png"></span>
						</p>
						<p class='hotel-item-other'>地址：<?php echo $one->DetailProvince.' '.$one->address?></p>
					</div>
					<div class='hotel-comment-desc'>
						用户点评<br/>
						<a href='<?php echo Yii::app()->controller->createUrl('comment',array('type'=>'Hotel','id'=>$one->id))?>' class='font-clr bh-strong' target='<?php echo Yii::app()->option->get('comment_list_target');?>'>
						(<?php echo GoodsComment::model()->count(GoodsComment::model()->companyCriteria('Hotel',$one->id));?>)
						</a>
					</div>
					<div class='bh-clear'></div>
					<div class="hotel-comment-wrapper-arrow"></div>
					<div class='hotel-comment-wrapper'>
						<ul>
							<?php foreach (GoodsComment::model()->commentData('Hotel',$one->id, 2) as $key => $oneComment):?>
							<li class='li_level_0<?php echo $oneComment->rate?> <?php if ($key==1)echo 'last'?>'><?php echo $oneComment->title(50, true)?></li>
							<?php endforeach;?>
						</ul>
					</div>
				</div>
				<div class='bh-clear'></div>
			</div>
			<div class='hotel-item-room-wrapper'>
				<table class='tb-sku'>
					<thead>
						<tr><th>房型</th><th>床型</th><th>早餐</th><th>宽带</th><th>价格</th><th>供货商</th><th></th></tr>
					</thead>
					<tbody>
						<?php foreach ($one->goods as $item):?>
						<tr>
							<td><?php echo $item->room_type?></td>
							<td><?php echo Yii::app()->enum->lookup('goods.bedType', $item->bed_type)?></td>
							<td><?php echo Yii::app()->enum->lookup('yes2no', $item->has_breakfast)?></td>
							<td><?php echo Yii::app()->enum->lookup('goods.broadbandType',$item->broadband_type)?></td>
							<td class='font-clr bh-strong fs-14'>¥<?php echo CHtml::value($item, 'goods.priceInfo.price_dealer')?></td>
							<td><a href=<?php echo Yii::app()->createUrl('shop/index',array('uid'=>CHtml::value($item, 'goods.provider_id')))?> target='_blank'><?php echo CHtml::value($item, 'goods.provider.profile.nickname')?></a></td>
							<td>
                            <a class="jj-hotel-yuding" href='<?php echo $this->createUrl('channel/hotelWrite',array('id'=>$item->goods_id))?>' target='<?php echo Yii::app()->option->get('hotel_order_target');?>'>立即预订</a>
                            </td>
						</tr>
						<?php endforeach;?>
					</tbody>
				</table>
			</div>
		</div>
		<?php endforeach;?>
		<div class="bh-space"></div>
		<div class="bh-c-shuizi1-c-yy bh-mLeft20 bh-fr">
			<?php $this->widget('LyLinkPager',array(
					'pages' => $data->pagination,
				))?>
		</div>
</div>